<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/includes/fw/core/include_taglib_core.jsp" %>
<%@ include file="/WEB-INF/views/includes/fw/auth/include_taglib_auth.jsp" %>
<!DOCTYPE html>
<html>
<head>
	<title>登录系统</title>
    <%@ include file="/WEB-INF/views/includes/include_core.jsp" %>
    <style>.error{color:red;}</style>
</head>
<body>
<center>
<div class="error">${error}</div>
<form action="${ctx}/auth/login.htm" method="post">
    用户名：<input type="text" name="username" value="admin"><br/>
     密码：<input type="password" name="password" value="123456"><br/>
    <%-- jcaptchaEbabled 在JCaptchaValidateFilter设置 --%>
        验证码：
        <input type="text" name="captcha">
        <img class="jcaptcha-btn jcaptcha-img" style="cursor: pointer;" src="${ctx }/auth/jcaptcha.jpg" title="点击更换验证码">
        <a class="jcaptcha-btn" href="javascript:;">换一张</a>
        <br/>
    自动登录：<input type="checkbox" name="rememberMe" value="true"><br/>
    <input type="submit" value="登录">
</form>
<script>
    $(function() {
        $(".jcaptcha-btn").click(function() {
            $(".jcaptcha-img").attr("src", '${ctx }/auth/jcaptcha.jpg?'+new Date().getTime());
        });
    });
</script>
</center>
</body>
</html>